import { request } from './request'
// 歌单信息
export function getListDetail (id = 0) {
  return request({
    url: '/playlist/detail',
    params: {
      id
    }
  })
}
// 歌曲列表
export function genSonglist (ids = []) {
  return request({
    url: `/song/detail?ids=${ids}`
  })
}
// 精彩评论列表
export function genHotCommentlist (id = 0, type = 2) {
  return request({
    url: '/comment/hot',
    params: {
      id,
      type
    }
  })
}
// 普通评论列表
export function genCommentlist (id = 0, pageSize = 20, offset = 0) {
  return request({
    url: '/comment/playlist',
    params: {
      id,
      pageSize,
      offset
    }
  })
}
